#pragma once
#include "highgui_c.h"
#include "imgproc_c.h"
#include "stdio.h"
class MyRGBImage
{
public:
	MyRGBImage(void);
	MyRGBImage(IplImage*img);
	~MyRGBImage(void);
public:
	IplImage* RGBImage;
private:
	float redHist[256];
	float greenHist[256];
	float blueHist[256];
private:
	float Max(float a[]);
	void CalcHist();
public:
	IplImage *DrawHistogram(float colWidth,float colHeight);
};
